<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-bind</title>

    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
</head>

<body>
    <div id="box">
        一个可以改变状态的输入框：<input v-bind:type="inputType" />
    </div>
</body>
<script>
    // 动态地去绑定一些HTML属性时，可以通过v-bind指令来 响应式更新该DOM节点
    new Vue({
        el: "#box",
        data() {
            return {
                inputType: "password"
            }
        },
    });
</script>

</html>